↳ Prolog
↳ PrologToPiTRSProof
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X, .(C, Cs)) → U2_gga(R, Rs, X, C, Cs, row2col_in_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X, C, Cs, row2col_out_gaaa(R, .(C, Cs), Cols1, Accm)) → U3_gga(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X, .(C, Cs)) → U2_gga(R, Rs, X, C, Cs, row2col_in_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X, C, Cs, row2col_out_gaaa(R, .(C, Cs), Cols1, Accm)) → U3_gga(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
TRANSPOSE_IN_GA(A, B) → U1_GA(A, B, transpose_aux_in_gga(A, [], B))
TRANSPOSE_IN_GA(A, B) → TRANSPOSE_AUX_IN_GGA(A, [], B)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X, .(C, Cs)) → U2_GGA(R, Rs, X, C, Cs, row2col_in_gaaa(R, .(C, Cs), Cols1, Accm))
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X, .(C, Cs)) → ROW2COL_IN_GAAA(R, .(C, Cs), Cols1, Accm)
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_GAAA(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GAAA(Xs, Cols, Cols1, As)
U2_GGA(R, Rs, X, C, Cs, row2col_out_gaaa(R, .(C, Cs), Cols1, Accm)) → U3_GGA(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
U2_GGA(R, Rs, X, C, Cs, row2col_out_gaaa(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X, .(C, Cs)) → U2_gga(R, Rs, X, C, Cs, row2col_in_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X, C, Cs, row2col_out_gaaa(R, .(C, Cs), Cols1, Accm)) → U3_gga(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
TRANSPOSE_IN_GA(A, B) → U1_GA(A, B, transpose_aux_in_gga(A, [], B))
TRANSPOSE_IN_GA(A, B) → TRANSPOSE_AUX_IN_GGA(A, [], B)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X, .(C, Cs)) → U2_GGA(R, Rs, X, C, Cs, row2col_in_gaaa(R, .(C, Cs), Cols1, Accm))
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X, .(C, Cs)) → ROW2COL_IN_GAAA(R, .(C, Cs), Cols1, Accm)
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_GAAA(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GAAA(Xs, Cols, Cols1, As)
U2_GGA(R, Rs, X, C, Cs, row2col_out_gaaa(R, .(C, Cs), Cols1, Accm)) → U3_GGA(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
U2_GGA(R, Rs, X, C, Cs, row2col_out_gaaa(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X, .(C, Cs)) → U2_gga(R, Rs, X, C, Cs, row2col_in_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X, C, Cs, row2col_out_gaaa(R, .(C, Cs), Cols1, Accm)) → U3_gga(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GAAA(Xs, Cols, Cols1, As)
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X, .(C, Cs)) → U2_gga(R, Rs, X, C, Cs, row2col_in_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X, C, Cs, row2col_out_gaaa(R, .(C, Cs), Cols1, Accm)) → U3_gga(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GAAA(Xs, Cols, Cols1, As)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
ROW2COL_IN_GAAA(.(X, Xs)) → ROW2COL_IN_GAAA(Xs)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
U2_GGA(R, Rs, X, C, Cs, row2col_out_gaaa(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X, .(C, Cs)) → U2_GGA(R, Rs, X, C, Cs, row2col_in_gaaa(R, .(C, Cs), Cols1, Accm))
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X, .(C, Cs)) → U2_gga(R, Rs, X, C, Cs, row2col_in_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X, C, Cs, row2col_out_gaaa(R, .(C, Cs), Cols1, Accm)) → U3_gga(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
U2_GGA(R, Rs, X, C, Cs, row2col_out_gaaa(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X, .(C, Cs)) → U2_GGA(R, Rs, X, C, Cs, row2col_in_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X) → U2_GGA(Rs, row2col_in_gaaa(R))
U2_GGA(Rs, row2col_out_gaaa(Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm)
row2col_in_gaaa(.(X, Xs)) → U4_gaaa(row2col_in_gaaa(Xs))
U4_gaaa(row2col_out_gaaa(As)) → row2col_out_gaaa(.([], As))
row2col_in_gaaa([]) → row2col_out_gaaa([])
row2col_in_gaaa(x0)
U4_gaaa(x0)
From the DPs we obtained the following set of size-change graphs: